package com.pp.httpserver;

import java.io.IOException;
import java.net.ServerSocket;

public class LuffyServer {
	private int port;
	private String addr;
	private static final String ADDR_LOOP = "127.0.0.1";
	private static final int DEFAULT_PORT = 8000;
	ServerSocket serversocket ;
	
	public LuffyServer(){
		this(ADDR_LOOP,DEFAULT_PORT);
	}
	public LuffyServer(String addr ,int port){
		this.addr = addr;
		this.port = port;
	}
	
	public void init() throws IOException{
		serversocket = new ServerSocket(port);
		
	}
	
	public void run(){
		
	}
	public void close(){
		
	}
}
